package com.moji.controller.api;


import com.moji.common.base.ApiResult;
import com.moji.entity.MjSeo;
import com.moji.entity.SysMessage;
import com.moji.service.MjSeoService;
import com.moji.service.SysMessageService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 系统消息表 前端控制器
 * </p>
 *
 * @author ccl
 * @since 2024-08-10
 */
@RestController
@RequestMapping("api/sysMessage")
@Api(tags = "消息提醒api相关接口", value = "消息提醒api相关接口")
public class SysMessageController {

    @Resource
    private SysMessageService sysMessageService;

    @PostMapping("/add")
    @ApiOperation(value = "新增",response = Boolean.class)
    public ApiResult add(@Validated @RequestBody SysMessage sysMessage){
        return ApiResult.ok(sysMessageService.add(sysMessage));
    }


}

